from django.urls import path

from users.views.artistacquisition_view import ArtistAcquisitionView
from users.views.login_view import UserLoginView, UserRegisterView, UserLogoutView
from users.views.rest_password_view import AdminResetPasswordView
from users.views.user_view import CustomUserListView, CustomUserDetailView, PasswordChangeView

urlpatterns = [
    # 用户模块
    path('login/', UserLoginView.as_view(), name='login'),
    path('register/', UserRegisterView.as_view(), name='register'),
    path('logout/', UserLogoutView.as_view(), name='logout'),
    path('admin/user/', CustomUserListView.as_view(), name='admin-user_list'),
    path('user/<int:pk>/', CustomUserDetailView.as_view(), name='user_detail'),
    path('user/artist/List/', ArtistAcquisitionView.as_view(), name='artist_list'),
    path('user/<int:pk>/updatapwd/', PasswordChangeView.as_view(), name='update_password'),
    path('reset/password/<int:user_id>/', AdminResetPasswordView.as_view(), name='admin_reset_password'),
]
